/**
 * Created by Administrator on 2019/8/19.
 */
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {

    var form = $("form.form-commonsearch");

    if ($(".datetimepicker", form).size() > 0) {
        require(['bootstrap-datetimepicker'], function () {
            var options = {
                format: 'YYYY-MM-DD HH:mm:ss',   //
                icons: {
                    time: 'fa fa-clock-o',
                    date: 'fa fa-calendar',
                    up: 'fa fa-chevron-up',
                    down: 'fa fa-chevron-down',
                    previous: 'fa fa-chevron-left',
                    next: 'fa fa-chevron-right',
                    today: 'fa fa-history',
                    clear: 'fa fa-trash',
                    close: 'fa fa-remove'
                },
                showTodayButton: true,
                showClose: true
            };
            $('.datetimepicker', form).parent().css('position', 'relative');
            $('.datetimepicker', form).datetimepicker(options);

        });
    }

    var Controller = {


    };
    return Controller;
});
